/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pruebas;

import java.util.Scanner;

/**
 *
 * @author ddpc
 */
public class triangulo {
    private int a,b,c;
    
    public void Iniciar(){
        Scanner teclado = new Scanner(System.in);
        System.out.println("Introduce lado:");
        a = teclado.nextInt();
        System.out.println("Introduce lado:");
        b = teclado.nextInt();
        System.out.println("Introduce lado:");
        c = teclado.nextInt();
    }
    public void mayor(){
        if(a>b && b >c){
            System.out.println(a+" Es el lado mas grande");
        }
        else if(b>a && b>c){
            System.out.println(b+" Es el lado mas grande");
        }
        else{
            System.out.println(c+" Es el lado mas grande");
        }
    }
    public void equilatero(){
        if(a == b  && b == c){
            System.out.println("Es equilatero");
        }
        else{
            System.out.println("No es equilatero");
        }
    }
    public static void main(String[] args){
        triangulo x = new triangulo();
        x.Iniciar();
        x.mayor();
        x.equilatero();
    }
}

